package org.tuoren.official.domain.bo;

import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.official.domain.Introduction;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 集团简介信息业务对象 t_introduction
 *
 * @author wl
 * @date 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Introduction.class, reverseConvertGenerate = false)
public class IntroductionBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 背景图片
     */
    @NotBlank(message = "背景图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoUrl;
    /**
     * 移动端背景
     */
    private String appPhotoUrl;
    /**
     * 视频
     */
    //@NotBlank(message = "视频不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoUrl;

    /**
     * 展示文字
     */
    //@NotBlank(message = "展示文字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String textDesc;

    /**
     * 所属后台管理菜单模块
     */
    @NotNull(message = "后台管理菜单模块不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long menuId;


}
